package com.zsq.common.base;

import java.util.List;

/**
 * @author zsq
 * @date 2019/11/21 - 17:45
 */
public class MPageBody<T> {

    private int currentPage;
    private long total;
    private int pageSize;
    private boolean hasNext;
    private long pages;
    private List<T> list;

    @Override
    public String toString() {
        return "MPageBody{" +
                "currentPage=" + currentPage +
                ", total=" + total +
                ", pageSize=" + pageSize +
                ", hasNext=" + hasNext +
                ", pages=" + pages +
                ", list=" + list +
                '}';
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public boolean isHasNext() {
        return hasNext;
    }

    public void setHasNext(boolean hasNext) {
        this.hasNext = hasNext;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
